package com.example.wk.zyfypt_218wk.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

import com.example.wk.zyfypt_218wk.R;

public class ViewCaseActivity extends AppCompatActivity {
    private int resid;
    private WebView webView;
    private String BASEURL="http://amicool.neusoft.edu.cn/";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view_case);
        System.out.println("----查看案例详情");

        resid  = getIntent().getIntExtra("resid",1);

        webView = (WebView)findViewById(R.id.webview);
        webView.loadUrl(BASEURL+"article.php/show/index/id/"+resid);
    }
}


